import { http } from '@/utils/http'

/**
 * 果蔬表数据
 */
export const vegeFruGetListAPI = (params) => {
  return http({
    method: 'GET',
    url: '/table',
    data: params,
  })
}

export const vegeFruGetDetailAPI = (id) => {
  return http({
    method: 'GET',
    url: '/table/detail',
    data: { id },
  })
}

// 获取分类数据
export const getCategoryAPI = (mt = '') => {
  return http({
    method: 'GET',
    url: '/table/category',
    data: { mt },
  })
}
